<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript" src="./lib/axios.min.js"></script>
    <script type="text/javascript">
        axios.default.baseURL = 'http://www.liulongbin.top:3006/';
        axios({
            method: 'post',
            url: 'api/get',
            params: {
                id: 1,
                uname: 'lisi'
            }
        }).then(function(res) {
            console.log(res);
        })
        axios.get('api/get?id=1').then(function(res) {
            console.log(res);
        })
    </script>
</body>

</html>